﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace test2
{
    public partial class Form4 : Form
    {
        public Form4()
        {
            InitializeComponent();
        }
        string s = "rest";
        private void button1_Click(object sender, EventArgs e)
        {
            if(textBox1.Text==s)
            {
                Form5 frm5 = new Form5();
                frm5.Owner=this;
                frm5.Show();
                this.Hide();
            }
            else
            {
                MessageBox.Show("Bạn đã nhập sai password");
            }
        }
    }
}
